]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
appDisplay: Connect to GSettings after reading key
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Tue, 1 Sep 2020 20:12:56 +0000 (17:12 -0300)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Tue, 1 Sep 2020 20:12:56 +0000 (17:12 -0300)
As per GSettings documentation, it is necessary to read a particular
key at least once before being able to connect to the corresponding
'changed::' signal.

Read the 'app-picker-layout' key before connecting to the changed
signal.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1428

js/ui/appDisplay.js

index 98ac9e68b0f8018f4817931b6e30b9041a33f4ae..9e00823f6306222e5b1a0362a01b11f04065691c 100644 (file)
@@ -829,11 +829,12 @@ var PageManager = GObject.registerClass({
     _init() {
         super._init();
 
+        this._updatingPages = false;
+        this._loadPages();
+
         global.settings.connect('changed::app-picker-layout',
             this._loadPages.bind(this));
 
-        this._updatingPages = false;
-        this._loadPages();
     }
 
     _loadPages() {